import { BrowserRouter, Route, Routes } from 'react-router-dom';

import AppForm from '../Home';
import Page1Form from '../page/Page1';
import Page2Form from '../page/Page2';


export default () => (
    <>
        <BrowserRouter>
            {/* 注册路由 */}
            <Routes>
                <Route path='/' element={<AppForm />} />
                <Route path='/page1' element={<Page1Form />} />
                <Route path='/page2' element={<Page2Form />} />
            </Routes>
        </BrowserRouter>
    </>
)